<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>理塘旅行社</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="/css/uniform.css" />
    <link rel="stylesheet" href="/css/select2.css" />
    <link rel="stylesheet" href="/css/unicorn.main.css" />
    <link rel="stylesheet" href="/css/unicorn.grey.css" class="skin-color" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="min-width: 1500px;overflow:auto;">


<div id="header">
    <h1>
        <a href="./dashboard.html">理塘旅行社</a>
    </h1>
</div>
<div id="user-nav" class="navbar navbar-inverse">
    <ul class="nav btn-group">
        <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-user"></i> <span class="text">个人信息</span></a></li>
        <li class="btn btn-inverse dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">信息</span> <span class="label label-important">5</span> <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a class="sAdd" title="" href="#">新建信息</a></li>
                <li><a class="sInbox" title="" href="#">收件箱</a></li>
                <li><a class="sOutbox" title="" href="#">发件箱</a></li>
                <li><a class="sTrash" title="" href="#">垃圾箱</a></li>
            </ul>
        </li>
        <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
        <li class="btn btn-inverse"><a title="" href="login.html"><i class="icon icon-share-alt"></i> <span class="text">注销</span></a></li>
    </ul>
</div>

<div id="sidebar">

    <ul>
        <li><a href="../index.html"><i class="icon icon-home"></i> <span>首页</span></a></li>
        <li class="submenu"><a href="#"><i
                class="icon icon-th-list"></i> <span>用户管理</span> </a>
            <ul>
                <li><a href="/admin/findAllUser">个人用户</a></li>
            </ul>
        </li>
        <li class="submenu"><a href="#"><i class="icon icon-th-list"></i>
            <span>热门景点管理</span></a>
            <ul>
                <li><a href="/admin/findAllRemen">当前热门</a></li>
            </ul></li>
        <li><a href="/admin/findAllYouHui"><i class="icon icon-th-list"></i> <span>优惠特价管理</span></a></li>
        <li  class="submenu active open">
            <a href="#"><i class="icon icon-th-list"></i> <span>全部旅途管理</span></a>
            <ul>
                <li class="active"><a href="/admin/findAllTra">全部旅途</a></li>
                <li class="active"><a href="/admin/findBin">回收站</a></li>
            </ul>
        </li>
    </ul>

</div>



<div id="content" style="height: 1000px;">
    <div id="content-header">
        <h1>旅途管理</h1>
        <div class="btn-group">
            <a href="/admin/findAllUser" class="btn btn-large tip-bottom" title="用户管理"><i class="icon-user"></i></a>
            <a href="/admin/findAllComment" class="btn btn-large tip-bottom" title="评论管理"><i class="icon-comment"></i><span class="label label-important">5</span></a>
        </div>
    </div>
    <div id="breadcrumb">
        <a href="../index.html" title="回到首页" class="tip-bottom"><i
                class="icon-home"></i> 首页</a> <a href="#" class="tip-bottom">评论管理</a>
    </div>


    </br>


    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-content nopadding">
                        <table class="table table-bordered data-table">
                            <colgroup>
                                <col style="width: 20%;">
                                <col style="width: 20%;">
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>评论所在旅途编号</th>
                                <th>评论所在旅途名称</th>
                                <th>评论编号</th>
                                <th>评论用户ID</th>
                                <th>评论用户姓名</th>
                                <th>评论内容</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="item:${commentList}">
                                <td th:text="${item.traId}"></td>
                                <td th:text="${item.traName}"></td>
                                <td th:text="${item.pId}"></td>
                                <td th:text="${item.uId}"></td>
                                <td th:text="${item.uName}"></td>
                                <td th:text="${item.pContent}"></td>
                                <td>
                                    <a th:href="@{/admin/deleteComment(pId=*{item.pId})}" data-toggle="modal" class="btn btn-info">删除评论</a>
                                    <a th:href="@{/admin/deleteUser(uId=*{item.uId})}" data-toggle="modal" class="btn btn-info">抹除用户</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>


</div>






<script src="/js/jquery.min.js"></script>
<script src="/js/jquery.ui.custom.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.uniform.js"></script>
<script src="/js/select2.min.js"></script>
<script src="/js/jquery.dataTables.min.js"></script>
<script src="/js/unicorn.js"></script>
<script src="/js/unicorn.tables.js"></script>
</body>
</html>
